package com.example.haojiutao.controller.admin;

import com.example.haojiutao.common.Result;
import com.example.haojiutao.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: zhou_yuan
 * @CreateTime： 2024/2/2 15:38
 */
@RestController("UserBannerController")
public class BannerController {
    @Autowired
    private BannerService bannerService;

    @GetMapping("/user/banner")

    public Result list() {
        return Result.success("查询成功", bannerService.selectAll());
    }
}
